package org.onlineCode.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.onlineCode.pojo.Codes;

public interface CodeDao extends CommonDao<Codes, Integer>{
	/**
	 * 根据代码编号删除对应的修改日志记录
	 * @param id
	 */
	public void deleteLogByCodeId(Integer id);
	
	/**
	 * 修改代码的状态：共享还是不共享
	 * @param id
	 * @param state
	 */
	public void updateCodeState(@Param("id")int id,@Param("state") int state);
	
	public List<Codes> getSharedCodes(@Param("start")int start,@Param("limit") int limit);
	
	public int getSharedCount();
}
